package com.t.bricks.bussiness.db.mapper.paylog;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface PayLogMapper {
	
	/**
	 * 判断指定的订单号及顾客号的订单是否存在
	 * @Param sOrdersId 订单编号
	 * @Param sCustomerId 顾客编号
	 * @return int
	 */
	int hasOrders(
		@Param("sOrdersId") String sOrdersId,
		@Param("sCustomerId") String sCustomerId
	);
	
	/**
	 * 获取指定订单号的状态值
	 * @Param sOrdersId 订单编号
	 * @return int
	 */
	int getOrdersState(@Param("sOrdersId") String sOrdersId);
	
}
